package com.feizhoutuobang.shapeline.bo.impl;

import java.util.Date;

import com.feizhoutuobang.shapeline.bo.Feed;
import com.feizhoutuobang.shapeline.util.Calendar;

public class FeedImpl implements Feed {
	
	private String id = "";
	private String url = "";
	private String title = "";
	private String description = "";
	private String link = "";
	private int statistic = -1;
	private String nextFetchTime = Calendar.INVALID_TIME;
	private boolean valid;
	
	@Override
	public String getId() {
		return id;
	}

	@Override
	public void setId(String id) {
		this.id = id;
	}

	@Override
	public String getUrl() {
		return url;
	}

	@Override
	public void setUrl(String url) {
		this.url = url;
	}

	@Override
	public String getTitle() {
		return title;
	}

	@Override
	public void setTitle(String title) {
		this.title = title;
	}

	@Override
	public String getDescription() {
		return description;
	}

	@Override
	public void setDescription(String description) {
		this.description = description;
	}

	@Override
	public String getLink() {
		return link;
	}

	@Override
	public void setLink(String link) {
		this.link = link;
	}

	@Override
	public int getStatistic() {
		return statistic;
	}

	@Override
	public void setStatistic(int statistic) {
		this.statistic = statistic;
	}

	@Override
	public Date getNextFetchTime() {
		return Calendar.parse(nextFetchTime);
	}

	@Override
	public void setNextFetchTime(Date nextFetchTime) {
		this.nextFetchTime = Calendar.format(nextFetchTime);
	}

	@Override
	public boolean isValid() {
		return valid;
	}

	@Override
	public void setValid(boolean valid) {
		this.valid = valid;
	}

	public String getNextFetchTime_() {
		return nextFetchTime;
	}

	public void setNextFetchTime_(String nextFetchTime) {
		this.nextFetchTime = nextFetchTime;
	}
}
